<?php
    session_start();
    require_once ("../../recursos/conf/cvcpa.conf");
    require_once ("../../recursos/librery/adodb/adodb.inc.php");
    require_once ("../../recursos/class/conexion.class.php");
    require_once ("../../recursos/class/empleado.class.php");
    
    $obj_empleado   = new Empleados();
    $nick_emp       = $_POST["nick_emp"];
    $pass_emp       = $_POST["pass_emp"];
    
    if($obj_empleado->login($nick_emp, $pass_emp))
    {
        echo "1";
    }
    else
    {
        echo "2";
    }
?>
